import request from './request'

// 获取宠物列表
export const getAxiosPetList = () => request({
  url: '/api/pet/'
})
// 获取指定宠物列表
export const getAxiosPetDetailt = (id) => request({
  url: `/api/pet/${id}`
})


// 获取产品数据
export const getAxiosGoodsList = (pageNum = 1, pageSize = 9, obj = '') => request({
  url: `/api/goods/?pageNum=${pageNum}&pageSize=${pageSize}`,
  method: 'post',
  data: obj
})

export const getAxiosGoodDetails = (id) => request({
  url: `/api/goods/${id}`
})